<div id="content">
                    	<h3>Sửa thông tin sản phẩm</h3>
                        
                        <a class="back" href="<?php echo base_url() ?>index.php/Quanlytintuc/index">Quay lại</a>
                        
                        <div id="contentFunc">
                        	<?php 
								$attributes = array('id'=>'frmCapNhatTT','name'=>'frmCapNhatTT','enctype'=>'multipart/form-data');
								echo form_open_multipart('Quanlytintuc/sua/'.$tintuc['matt'],$attributes);	
							?>
                            
                              <div class="blockSP">
                                <label class="lblTinTuc" for="txtTieuDe">Tiêu đề:</label>
                                <input class="input" type="text" id="txtTieuDe" value="<?php echo $tintuc['tieude']?>" name="tieude"/>
                              </div>
                              <div class="blockSP">
                                <label class="lblTinTuc" for="txtTieuDeEn">Tiêu đề (En):</label>
                                <input class="input" type="text" id="txtTieuDeEn" value="<?php echo $tintuc['tieude_en']?>" name="tieude_en"/>
                              </div>
                              <div class="blockSP">
                                <label class="lblTinTuc" for="txtTomTat">Tóm tắt :</label>
                                <textarea class="input" id="txtTomTat"  name="tomtat"><?php echo $tintuc['tieude_en']?></textarea>
                              </div>  
                              <div class="blockSP">
                                <label class="lblTinTuc" for="txtTomTatEn">Tóm tắt (En):</label>
                                <textarea class="input" id="txtTomTatEn" name="tomtat_en"><?php echo $tintuc['tomtat_en']?></textarea>
                              </div>  
                              <div id="chiTietSP">
                                <label id="lblChiTiet" for="txtNoiDung">Tiếng Việt:</label>
                                <textarea id="txtNoiDung" name="noidung"><?php echo $tintuc['noidung']?></textarea>
                                
                                <script type="text/javascript">
                                	CKEDITOR.replace("txtNoiDung");
                                </script>
                              </div>
                              
                               <div id="chiTietSP">
                                <label id="lblChiTiet" for="txtNoiDungEn">Tiếng Anh:</label>
                                <textarea id="txtNoiDungEn" name="noidung_en"><?php echo $tintuc['noidung_en']?></textarea>
                                
                                <script type="text/javascript">
                                	CKEDITOR.replace("txtNoiDungEn");
                                </script>
                              </div>
                              
                              
                              <div class="blockSP">
                                <label class="lblTinTuc" for="txtDonViTinh">Tác giả:</label>
                                <input class="input" type="text" id="txtTacGia"  value="<?php echo $tintuc['tacgia']?>" name="tacgia"/>
                              </div>
                              
                              <div class="blockSP">
                                <label class="lblTinTuc" for="filHinhDaiDien">Hình đại diện:</label>
                                <input class="input" type="file" id="filHinhDaiDien" name="filHinhDaiDien"/>
                              </div>   
                               <div class="img">
                       
                              	<img src="<?php echo base_url().$tintuc['hinh']?>" alt="đại diện" width="200" height="200"/>
                              </div>      
                              <?php 
								echo validation_errors();
								if(!empty($img['error_upload']))
								{
									echo $img['error_upload'];
								}
								if(!empty($thongbao))
								{
									echo $thongbao;
									}				
							  ?>
                              <div class="blockSP button">
                              	<input type="submit"  id="btnSua" value="Lưu" />
                				<input type="reset" name="btnHuyBo" id="btnHuyBo" value="Hủy bỏ" />
                              </div>
                           </form>
                        </div>
                    </div>
            </div>